package HomeWork;

import java.util.Scanner;

public class Massage {
    public static void main(String[] args) {
        System.out.println("请输入自己的信息");
        Scanner input = new Scanner(System.in);
        System.out.println("姓名：");
        String name = input.next();

        System.out.println("年龄：");
        int age = input.nextInt();

        System.out.println("性别");
        char sex = input.next().charAt(0);

        String massger = String.format("姓名：%s,年龄：%d,性别：%c",name,age,sex);
        System.out.println(massger);

    }
}
